<!-- Main Header -->
<header class="main-header">

    <!-- Logo -->
    <a href="/{{ trim(config('admin.prefix'), '/') }}" class="logo ">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini">{!! config('admin.logo-mini', config('admin.name')) !!}</span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg logo-lg-center">{!! config('admin.logo', config('admin.name')) !!}</span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top " role="navigation"  >
        <!-- Sidebar toggle button-->
        <div style="width: 100%;display: flex;justify-content: space-between">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <div class="department-name" >{!! \Illuminate\Support\Facades\Auth::user()->getDepartmentName() !!}</div>
        <!-- Navbar Right Menu -->

            <div class="navbar-custom-menu ">
                <ul class="nav navbar-nav">
                    {!! Admin::getNavbar()->render() !!}

                    <!-- User Account Menu -->
                    <li class="dropdown user user-menu">
                        <!-- Menu Toggle Button -->

                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <!-- The user image in the navbar-->
                            <img src="{{ Auth::user()->avatar }}" class="user-image" alt="User Image">
                            <!-- hidden-xs hides the username on small devices so only the image appears. -->
                            <span class="hidden-xs">{{ Auth::user()->getName() }}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- The user image in the menu -->
                            <li class="user-header">
                                <img src="{{ Auth::user()->avatar }}" class="img-circle" alt="User Image">

                                <p>
                                    {{ Auth::user()->getName() }}
                                    {{--<small>Member since admin {{ Admin::user()->created_at }}</small>--}}
                                </p>
                            </li>
                            <li class="user-footer">
                                {{--<div class="pull-left">--}}
                                {{--<a href="{{ Admin::url('auth/setting') }}" class="btn btn-default btn-flat">{{ trans('admin::lang.setting') }}</a>--}}
                                {{--</div>--}}
                                <div class="pull-right login-out">
                                    <a href="{{ Admin::url('auth/reset') }}" class="btn btn-default btn-flat login-out-btn">修改密码</a>
                                </div>
                            </li>
                            <li class="user-footer">
                                {{--<div class="pull-left">--}}
                                    {{--<a href="{{ Admin::url('auth/setting') }}" class="btn btn-default btn-flat">{{ trans('admin::lang.setting') }}</a>--}}
                                {{--</div>--}}
                                <div class="pull-right login-out">
                                    <a href="{{ Admin::url('auth/logout') }}" class="btn btn-default btn-flat login-out-btn">退出登录</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->
                    {{--<li>--}}
                        {{--<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>--}}
                    {{--</li>--}}
                </ul>
            </div>
        </div>
    </nav>
</header>
